package com.have.blog.admin.redis;

import com.have.blog.model.models.ResourceMenu;

import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * Created By Have
 * 2021/7/17 19:12
 */
public interface AdminRoleCacheService {

    void setRoleResource(int roleId, List<ResourceMenu> resources, long expiredTime, TimeUnit timeUnit);

    List<ResourceMenu> getRoleResource(int roleId);

    void delRoleResource(int roleId);

    void setRoleIdByRoleName(String roleName, int roleId);

    Integer getRoleId(String roleName);

    void delRoleIdByRoleName(String roleName);
}
